package com.santi.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;

import com.santi.entity.User;
@Mapper
public interface UserMapper {

	User login(@Param("username") String username,@Param("password") String password);

	/**
	 * 注册  插入一条user记录
	 * @param user
	 * @return
	 */
	public int register(User user);
}
